const cheerio = require('cheerio');

class BaseParser {
    constructor() {
        this.cheerio = cheerio;
    }

    /**
     * 移除换行符'\n' 和 空格符'\s'
     * 
     * @param {String} text 
     * @returns 
     * @memberof BaseParser
     */
    removeEnterAndSpace(text) {
        return text.replace(/\n/g, "").replace(/\s/g, "");
    }
    parser() {

    }

}

module.exports = BaseParser